package com.bangyu.monitor.modular.system.service;

import com.bangyu.monitor.modular.system.entity.WeightPayloadRecover;
import com.bangyu.monitor.modular.system.mapper.WeightPayloadRecoverMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zhangxue
 * @Date: 19/7/8 22:04
 * @Description:
 */
@Service
public class WeightPayloadRecoverService extends
        ServiceImpl<WeightPayloadRecoverMapper,WeightPayloadRecover> {


    public WeightPayloadRecover getLastByBeamNo(String beamNo){
        return this.baseMapper.getLastByBeamNo(beamNo);
    }
    public void batchInsert(List<WeightPayloadRecover> batchs){
        this.baseMapper.batchInsert(batchs);
    }

    public List<WeightPayloadRecover> getByBeamNoAndDateLimit(String beamNo,Integer startDate,Integer endDate){
        return this.baseMapper.getByBeamNoAndDateLimit(beamNo,startDate,endDate);
    }
}
